﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BestCode.Creds.Entities;
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;

namespace BestCode.Creds.Data.Mappings
{
    public class TemplateMapping : ClassMapping<Template>
    {
        public TemplateMapping()
        {
            Id(p => p.Id, map =>
            {
                map.Column("TemplateId");
                map.Generator(Generators.Identity);
            });
            Property(p => p.Code);
            Property(p => p.Name);
            Property(p => p.FaceImagePath);
            Property(p=> p.AttachmentId);
        }
    }
}
